package day0718;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        //1.定义两个变量  height  weight
        double height = 0;
        double weight = 0;
        Scanner s=new Scanner(System.in);
        do {
            //1.定义两个变量  height  weight
            height = s.nextDouble();
            weight =  s.nextDouble();
            //2.  体重除以升高的平方。
            double bmi = weight / (height * height);
            //3. 如果计算结果小于18.5就打印"太瘦了"， 如果计算结果大于28就打印"太胖了"
            if (0 < bmi && bmi < 18.5) {
                System.out.println("太瘦了");
            } else if (18.5 <= bmi && bmi <= 24) {
                System.out.println("身材完美");
            } else if (24 < bmi) {
                System.out.println("太胖了");
            } else {
                System.out.println("输入有误");
            }
        }while(1<=height && height<=2.5   && 1<=weight && weight<=360);
    }
}
